import request from '@/utils/request'

// 查询高校信息列表
export function listUniversity(query) {
  return request({
    url: '/race/university/list',
    method: 'get',
    params: query
  })
}

// 查询高校信息详细
export function getUniversity(id) {
  return request({
    url: '/race/university/' + id,
    method: 'get'
  })
}

// 新增高校信息
export function addUniversity(data) {
  return request({
    url: '/race/university',
    method: 'post',
    data: data
  })
}

// 修改高校信息
export function updateUniversity(data) {
  return request({
    url: '/race/university',
    method: 'put',
    data: data
  })
}

// 删除高校信息
export function delUniversity(ids) {
  return request({
    url: '/race/university/' + ids,
    method: 'delete'
  })
}
